/**
 * [DragonApp.view.notice.SelectedBar description]
 * 公告待发布图像列表工具栏
 */
Ext.define('DragonApp.view.notice.SelectedBar', {

    extend: 'Ext.toolbar.Toolbar',
    xtype: 'notice-selected-bar',

    items: [{
        type: 'button',
        text: '图像上传',
        itemId: 'imageUpload',
        tooltip: '上传图像',
        handler: 'onImageUpload',
        iconCls: 'x-fa fa-cloud-upload',
        width: 100
    }, {
        xtype: 'button',
        text: '选择图库',
        itemId: 'catelogSelect',
        tooltip: '选择图库',
        enableToggle: true,
        toggleHandler: 'onImgSelect',
        iconCls: 'x-fa fa-folder-open ',
        width: 100
    }, '->', {
        xtype: 'textfield',
        name: 'searchfield',
        itemId: 'search_field',
        emptyText: '请输入筛选关键字',
        listeners: {
            specialKey: 'onTextFieldSpecialKeySearchSelected'
        }
    }, {
        xtype: 'button',
        itemId: 'search_btn',
        text: '搜索',
        reference: 'search',
        iconCls: 'fa fa-search fa-lg buttonIcon',
        listeners: {
            click: 'onSearchSelected'
        }
    }]
});